/*************************************************************************
	> File Name: linklist.h
	> Author: hug
	> Mail:   hug@haizeix.com
	> Created Time: 六  9/28 20:10:19 2019
 ************************************************************************/

#ifndef _LINKLIST_H
#define _LINKLIST_H

#define offset(T, name) ((long long)(&(((T *)(0))->name)))
#define Head(p, T, name) ((T *)(((char *)p) - offset(T, name)))

struct LinkNode {
    struct LinkNode *next;
};

#endif
